<template>
  <div class="home">
    <router-view></router-view>
    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" to="/home/index">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/home/classify">分类</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/home/cart">购物车</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="/home/my">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style lang="scss">
.home{
  width:100%;
  height:100%;
  overflow:hidden;
  display: flex;
  flex-direction: column;
  >:nth-child(1){
    flex: 1;
  }
  >:nth-child(2){
    width: 100%;
    height: 50px;
  }
}
</style>
